package light.head.model.el;

import java.io.Serializable;
/**
 * 班级课程联合主键
 */
public class ClassesCoursePK implements Serializable{
	
	private static final long serialVersionUID = -989018324747700162L;
	private Integer cc;			// 课程编号
	private Integer clc;		// 班级编号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof ClassesCoursePK)) {  
            return false;  
        }  
  
        final ClassesCoursePK ccr = (ClassesCoursePK) obj;
        if (!cc.equals(ccr.getCc())) {
            return false;
        }
        if (null == clc || clc.intValue() != ccr.getClc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = clc.hashCode();  
        result = 29 * result + cc.hashCode();  
        return result;  
	}
	
	public Integer getCc() {
		return cc;
	}
	public void setCc(Integer cc) {
		this.cc = cc;
	}
	public Integer getClc() {
		return clc;
	}
	public void setClc(Integer clc) {
		this.clc = clc;
	}
}
